﻿using EasyComm.ServiceUnit;

namespace EasyComm.SDK
{
    public delegate void WorkerServiceEventHandler(WorkerServiceEventArgs e);

    public class WorkerServiceEventArgs
    {
        public WorkerServiceUnit Unit { get; private set; }
        public ServiceAvailabilityType AvailabilityType { get; private set; }

        public WorkerServiceEventArgs(WorkerServiceUnit unit, ServiceAvailabilityType availabilityType)
        {
            Unit = unit;
            AvailabilityType = availabilityType;
        }
    }
}
